package com.lq.ecoldchain.ui.mine.user.paypassword

import org.kodein.di.Kodein
import org.kodein.di.android.support.AndroidLifecycleScope
import org.kodein.di.generic.bind
import org.kodein.di.generic.instance
import org.kodein.di.generic.scoped
import org.kodein.di.generic.singleton

/*
*2019/1/5 0005  11:45
*function by lq
*/
val payPasswordKodeinModule = Kodein.Module("Pay_Password_Kodein_Module"){
    bind<PayPasswordViewModel>() with scoped(AndroidLifecycleScope).singleton {
        PayPasswordViewModel()
    }

    bind<PayPasswordDelegate>() with scoped(AndroidLifecycleScope).singleton {
        PayPasswordDelegate(instance())
    }
}